package com.ty.day5;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/28 14:17
 */
public class ExceptionDemo01 {
    public static void main(String[] args) {
        print("12d");
    }
    static void print(String s){
        try {
            int a=Integer.parseInt(s);
        }catch (NumberFormatException e){
            e.printStackTrace();
        }finally {
            System.out.println("我是finally，我又执行了");
        }

    }
}
